<html>
<script>

var controller = function() {

var vAuthParameter = window.setInterval(function(){ automaticRenewToken() }, 1000 );
function automaticRenewToken() {
	console.log("I am called");
	};
};

controller();
</script>
</html>